package com.vdm.service.impl;

import com.vdm.dao.SettlementInfoMapper;
import com.vdm.model.SettlementInfo;
import com.vdm.service.SettlementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SettlementServiceImpl implements SettlementService {

    @Autowired
    SettlementInfoMapper settlementInfoMapper;

    @Override
    public SettlementInfo autoSettlement(Map map) {
        return settlementInfoMapper.autoSettlement(map);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return settlementInfoMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SettlementInfo record) {
        return settlementInfoMapper.insert(record);
    }

    @Override
    public int insertSelective(SettlementInfo record) {
        return settlementInfoMapper.insertSelective(record);
    }

    @Override
    public SettlementInfo selectByPrimaryKey(Integer id) {
        return settlementInfoMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SettlementInfo record) {
        return settlementInfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SettlementInfo record) {
        return settlementInfoMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<SettlementInfo> settlementInfoList() {
        return settlementInfoMapper.settlementInfoList();
    }

    @Override
    public int getSettlementInfoCount() {
        return settlementInfoMapper.getSettlementInfoCount();
    }

    @Override
    public List<SettlementInfo> settlementListByCond(Map map) {
        return settlementInfoMapper.settlementListByCond(map);
    }

    @Override
    public int getSettlementListByCondCount(Map map) {
        return settlementInfoMapper.getSettlementListByCondCount(map);
    }
}
